import 'common.dart';


class RouteTree {
  final List<AppRoute> _ones = <AppRoute>[];

  void addRoute(AppRoute route) {
    _ones.add(route);
  }

  AppRoute? matchRoute(String? path){
    AppRoute? appRoute;
    for(AppRoute e in _ones){
      if(e.routeName == path){
        appRoute = e;
        break;
      }
    }
    return appRoute;
  }
}
